package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 管道配置对象 pipe_configuration
 * 
 * @author ruoyi
 * @date 2024-01-22
 */
public class PipeConfiguration extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 管道名称 */
    @Excel(name = "管道名称")
    private String name;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 服务器IP */
    @Excel(name = "服务器IP")
    private String host;

    /** 端口 */
    @Excel(name = "端口")
    private String port;

    /** 用户 */
    @Excel(name = "用户")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 目标库名 */
    @Excel(name = "目标库名")
    private String targetDbName;

    /** 目标表名 */
    @Excel(name = "目标表名")
    private String targetTableName;

    /** 逻辑删除标志（0-默认，1-逻辑删除） */
    private Integer delFlag;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updated;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setHost(String host) 
    {
        this.host = host;
    }

    public String getHost() 
    {
        return host;
    }
    public void setPort(String port) 
    {
        this.port = port;
    }

    public String getPort() 
    {
        return port;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setTargetDbName(String targetDbName) 
    {
        this.targetDbName = targetDbName;
    }

    public String getTargetDbName() 
    {
        return targetDbName;
    }
    public void setTargetTableName(String targetTableName) 
    {
        this.targetTableName = targetTableName;
    }

    public String getTargetTableName() 
    {
        return targetTableName;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setCreated(Date created) 
    {
        this.created = created;
    }

    public Date getCreated() 
    {
        return created;
    }
    public void setUpdated(Date updated) 
    {
        this.updated = updated;
    }

    public Date getUpdated() 
    {
        return updated;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("description", getDescription())
            .append("host", getHost())
            .append("port", getPort())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("targetDbName", getTargetDbName())
            .append("targetTableName", getTargetTableName())
            .append("delFlag", getDelFlag())
            .append("created", getCreated())
            .append("updated", getUpdated())
            .toString();
    }
}
